#!/usr/bin/envpython
# -*-coding:UTF-8-*-
'''
@File    :   auth_url.py
@Contact :   308711822@qq.com
@License :   (C) Copyright 2021-2225, Personal exclusive right.

@Modify Time      @Author    @Version    @Desciption
------------      -------    --------    -----------
2023/5/27 16:04   小钟同学      1.0         None
'''

from infirmary_admin_src.infirmary_common.infirmary_controller import IBaseController
from infirmary_admin_src.infirmary_common.infirmary_controller.rest_controller_with_depends import \
    RestControllerWithDepends
from fastapi import Request, Depends, Path

from infirmary_admin_src.infirmary_smart_admin.infirmary_biz.infirmary.businesses.schemas import SchemaBase
from infirmary_admin_src.infirmary_smart_admin.infirmary_biz.system.login.services import LogicBusinesses
from infirmary_admin_src.infirmary_smart_admin.infirmary_utils.convert2_help import convert_dict_to_camel_case
# from infirmary_admin_src.infirmary_system.infirmary_biz.businesses.schemas import SchemaBase


class XParam(SchemaBase):
    '''
    账号密码登录参数
    '''


class IController(IBaseController):
    '''
    定制相关约束检测函数逻辑步序
    '''

    def __init__(self, *, request: Request,
                 schema_param: XParam = Depends(),
                 ):
        super().__init__(request=request)
        # 入参参数
        # 入参参数
        self.schema_param = schema_param


@RestControllerWithDepends()
class SystemMenuAuthUrlController(IController):

    def business_login(self):
        pass
        return [{
            "comment": "分页查询企业模块 @author 开云",
            "name": "EnterpriseController.queryByPage",
            "url": "/oa/enterprise/page/query"
        }, {
            "comment": "企业添加员工 @author 罗伊",
            "name": "EnterpriseController.addEmployee",
            "url": "/oa/enterprise/employee/add"
        }, {
            "comment": "【管理】通知公告-更新详情 @author 卓大",
            "name": "NoticeController.getUpdateFormVO",
            "url": "/oa/notice/getUpdateVO/{noticeId}"
        }, {
            "comment": "删除企业 @author 开云",
            "name": "EnterpriseController.deleteEnterprise",
            "url": "/oa/enterprise/delete/{enterpriseId}"
        }, {
            "comment": "查询企业详情 @author 开云",
            "name": "EnterpriseController.getDetail",
            "url": "/oa/enterprise/get/{enterpriseId}"
        }, {
            "comment": "企业列表查询 @author 开云",
            "name": "EnterpriseController.queryList",
            "url": "/oa/enterprise/query/list"
        }, {
            "comment": "【管理】通知公告-更新 @author 卓大",
            "name": "NoticeController.update",
            "url": "/oa/notice/update"
        }, {
            "comment": "分页查询企业员工 @author 卓大",
            "name": "EnterpriseController.queryPageEmployeeList",
            "url": "/oa/enterprise/employee/queryPage"
        }, {
            "comment": "【管理】通知公告-删除 @author 卓大",
            "name": "NoticeController.delete",
            "url": "/oa/notice/delete/{noticeId}"
        }, {
            "comment": "编辑企业 @author 开云",
            "name": "EnterpriseController.updateEnterprise",
            "url": "/oa/enterprise/update"
        }, {
            "comment": "【管理】通知公告-添加 @author 卓大",
            "name": "NoticeController.add",
            "url": "/oa/notice/add"
        }, {
            "comment": "【管理】通知公告-分页查询 @author 卓大",
            "name": "NoticeController.query",
            "url": "/oa/notice/query"
        }, {
            "comment": "企业删除员工 @author 罗伊",
            "name": "EnterpriseController.deleteEmployee",
            "url": "/oa/enterprise/employee/delete"
        }, {
            "comment": "新建企业 @author 开云",
            "name": "EnterpriseController.createEnterprise",
            "url": "/oa/enterprise/create"
        }, {
            "comment": "查询企业全部员工 @author 罗伊",
            "name": "EnterpriseController.employeeList",
            "url": "/oa/enterprise/employee/list"
        }]
